c142870fe6dcee34fb63b814823889130d44804e,plugins/org.eclipse.xtext.ui.core/src/org/eclipse/xtext/ui/core/editor/bracketmatching/GoToMatchingBracketAction.java,GoToMatchingBracketAction,run,#,36

Before Change


			TextSelection textSelection = (TextSelection) selection;
			if (textSelection.getLength()==0) {
				IRegion region = BracketMatchingUnitOfWork.match(document, bracketMatcher, textSelection.getOffset());
				editor.selectAndReveal(region.getOffset()+region.getLength(),0);
			}
		}
	}

After Change


			TextSelection textSelection = (TextSelection) selection;
			if (textSelection.getLength()==0) {
				IRegion region = BracketMatchingUnitOfWork.match(document, bracketMatcher, textSelection.getOffset());
				if (region != null)
					editor.selectAndReveal(region.getOffset()+region.getLength(),0);
			}
		}
	}